﻿namespace QuickShare.Vsix.SqlList.Commons
{
    public class CommandResult
    {
        public CommandStatus Status { get; private set; }
        public string Message { get; private set; }

        public static CommandResult Success(string message = null)
        {
            return new CommandResult { Status = CommandStatus.Success, Message = message };
        }
        public static CommandResult Fail(string message)
        {
            return new CommandResult { Status = CommandStatus.Fail, Message = message };
        }
        public static CommandResult Error(string message)
        {
            return new CommandResult { Status = CommandStatus.Error, Message = message };
        }
    }
}
